import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加预警信息
export function addInFireAlarmInfo(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/addInFireAlarmInfo"),
        method: 'post',
        data
    })
}

//更新预警信信息
export function updateInFireAlarmInfo(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/updateInFireAlarmInfo"),
        method: 'post',
        data
    })
}


export function deleteInFireAlarmInfo(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/deleteInFireAlarmInfo"),
        method: 'post',
        data
    })
}


//获取预警信息数据 getInFireAlarmInfoVo
export function getInFireAlarmInfoVo(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/getInFireAlarmInfoVo"),
        method: 'post',
        data
    })
}

//获取所有火警预警信息数据列表 getInFireAlarmInfoList
export function getInFireAlarmInfoList(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/getInFireAlarmInfoList"),
        method: 'post',
        data
    })
}


//分配人员处理预警
export function assignPeople(data) {
    return request({
        url: getUrl("admin/fireAlarmInfo/assignPeople"),
        method: 'post',
        data
    })
}
